import BusinessConstant from "@/constant/BusinessConstant";
import request from "@/request";
// 路径前缀
const PREFIX = BusinessConstant.ROOT_SERVER;

export default class WechatApi {
  /**
   * 获取微信的openid
   * @param 微信wx.login接口返回的code
   * @returns
   */
  static getWechatOPenId(code: string) {
    return request({
      method: "GET",
      url: `${PREFIX}/open_id?code=${code}`,
    });
  }
}
